#ifndef WINDOWCONTRELLER_H
#define WINDOWCONTRELLER_H

#include <QObject>
#include <QQuickWindow>

class WindowContreller : public QObject
{
    Q_OBJECT
public:
    WindowContreller(QQuickWindow *window) : window(window) {}

    Q_INVOKABLE void minimizeWindow() {
        if (window) {
            window->showMinimized();
        }
    }

    Q_INVOKABLE void maximizeWindow() {
            if (window) {
                window->showMaximized();
            }
        }
private:
    QQuickWindow *window;

signals:

public slots:
};

#endif // WINDOWCONTRELLER_H
